'use client';

import type { TMetadata } from '@/types';

const year = new Date().getFullYear();

export default function FooterH5IcpPage({ metadata }: { metadata: TMetadata }) {
  const env = metadata.env;

  return (
    <>
      {env.APP_ICP_NUM && env.APP_ICP_LINK ? (
        <div
          className="py-4 small d-flex flex-column align-items-center justify-content-center"
          style={{ marginBottom: '4rem' }}
        >
          <p className="mb-2">
            &copy; {year}Y &nbsp;{env.APP_NAME}
          </p>
          <a href={env.APP_ICP_LINK} className="text-decoration-none">
            {env.APP_ICP_NUM}
          </a>
        </div>
      ) : (
        <div className="py-4" style={{ marginBottom: '4rem' }}></div>
      )}
    </>
  );
}
